package com.example.table.bean;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

/**
 * @author : huwk
 * @version V1.0
 * @Project: table
 * @Package com.example.table.bean
 * @Description: TODO
 * @date Date : 2019年01月23日 10:43
 */

@Data
@Table(name = "base_operator")
public class Operator {
    @Column(name = "id", type = MySqlTypeConstant.BIGINT,length = 5 ,isKey = true,isAutoIncrement = true)
    private long id;
    @Column(name = "loginName",type = MySqlTypeConstant.VARCHAR,length = 24,isNull = false)
    private String loginName;
    @Column(name = "password",type = MySqlTypeConstant.VARCHAR,length = 32,isNull = false)
    private String password;
    @Column(name = "isStop",type = MySqlTypeConstant.INT,length = 2,isNull = false,defaultValue = "0")
    private int isStop;
}
